package com.example.haojiutao.service;


import com.example.haojiutao.common.Result;
import com.example.haojiutao.model.domain.Message;

import java.util.List;

public interface MessageService {

    /*
     * @Description: 接受消息
     * @Author: wang_meiying
     * @CreateTime: 2024/1/27 19:25
     * @param: message
     * @return: com.example.treasure_box.common.Result
     **/
    Result insertMessage(Message message);

    /*
     * @Description: 删除消息
     * @Author: wang_meiying
     * @CreateTime: 2024/1/27 20:26
     * @param: id
     * @return: int
     **/
    int deleteMessage(int id);

    /*
     * @Description: 查看消息
     * @Author: wang_meiying
     * @CreateTime: 2024/1/27 19:27
     * @param: message
     * @return: com.example.treasure_box.common.Result
     **/
    List<Message> selectMessage(Message message);

    int selectByUserId(int userId);

    /*
     * @Description: 根据用户id查看消息
     * @Author: wang_meiying
     * @CreateTime: 2024/1/27 19:28
     * @param: message
     * @return: com.example.treasure_box.common.Result
     **/

}
